package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 采购流水对象 purchase_flow
 * 
 * @author ruoyi
 */
@Data
public class PurchaseFlow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 采购流水ID */
    private Long purchaseFlowId;

    /** 采购单ID */
    @Excel(name = "采购单ID")
    private Long purchaseOrderId;

    /** 供应商ID */
    @Excel(name = "供应商ID")
    private Long supplierId;

    /** 采购单日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "采购单日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date orderDate;

    /** 采购总金额 */
    @Excel(name = "采购总金额")
    private BigDecimal totalAmount;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;

    // 省略getter/setter方法...
    // 请使用IDE自动生成getter/setter方法

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("purchaseFlowId", getPurchaseFlowId())
            .append("purchaseOrderId", getPurchaseOrderId())
            .append("supplierId", getSupplierId())
            .append("orderDate", getOrderDate())
            .append("totalAmount", getTotalAmount())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
} 